<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<body>
		<h1 class="pagetitle">
			<s:if test="supplier == null">新增供应商</s:if>
			<s:else>修改供应商基本信息</s:else>
		</h1>
		<div class="column1-unit">
				<s:form method="post" action="supplier!confirm.action"
					validate="true" theme="css_xhtml">
					
					<s:if test=" supplier.id != null"><s:hidden name="supplier.id"></s:hidden></s:if>
					
						<table class="formtable">
							<tr>
								<th width="100">
									供应商名称
								</th>
								<td>
									<s:textfield name="supplier.name" cssClass="validate[required]"></s:textfield>
								</td>
							</tr>
							<tr>
								<th width="100">
									电话
								</th>
								<td>
									<s:textfield name="supplier.phone" cssClass="validate[custom[number]]"></s:textfield>
								</td>
							</tr>
							<tr>
								<th width="100">
									备注
								</th>
								<td>
									<s:textarea name="supplier.remark"></s:textarea>
								</td>
							</tr>
						</table>

						<s:submit cssClass="button" theme="simple"></s:submit>
						<s:reset cssClass="button" theme="simple"></s:reset>
				</s:form>
		</div>

	</body>
</html>